Platform Explorer / Nuxeo Platform 2021.47

Contribution org.nuxeo.ecm.webapp.seam.debug.action--filters

This contribution is part of XML component org.nuxeo.ecm.webapp.seam.debug.action inside nuxeo-platform-webapp-base-2021.47.4.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Registration Order

17
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <filter id="restoreVersionDisplay">
          <rule grant="true">
            <condition>#{deleteActions.restoreActionDisplay()}
            </condition>
          </rule>
        </filter>
  • <filter id="devModeEnabledForAdmin">
          <rule grant="true">
            <condition>#{seamReload.getCanTriggerFlush()}</condition>
          </rule>
        </filter>
  • <filter id="seamHotReloadIsEnabled">
          <rule grant="true">
            <condition>#{seamHotReloadIsEnabled}</condition>
          </rule>
        </filter>
  • <filter id="layoutDevModeEnabled">
          <rule grant="true">
            <condition>#{nxDevModeSet and nuxeoLayoutManagerBean.devModeSet}</condition>
          </rule>
        </filter>
  • <filter id="layoutDevModeDisabled">
          <rule grant="true">
            <condition>#{nxDevModeSet and not nuxeoLayoutManagerBean.devModeSet}</condition>
          </rule>
        </filter>
  • <filter id="isNotVersion">
          <rule grant="true">
            <condition>!document.isVersion()</condition>
          </rule>
        </filter>
  • <filter id="hasSubscriptions">
          <rule grant="true">
            <condition>#{subscriptionAction.getSelectedNotifications().size() &gt; 0}</condition>
          </rule>
        </filter>
  • <filter id="hasNoSubscriptions">
          <rule grant="true">
            <condition>#{subscriptionAction.getSelectedNotifications().size() == 0}</condition>
          </rule>
        </filter>
  • <filter id="canSubscribe">
          <rule grant="false">
            <type>Domain</type>
            <type>WorkspaceRoot</type>
          </rule>
        </filter>
  • <filter id="documentHasBlobs">
          <rule grant="true">
            <condition>
              #{popupHelper.isDocumentHasBlobs(document)}
            </condition>
          </rule>
        </filter>
  • <filter id="hasNote">
          <rule grant="true">
            <schema>note</schema>
          </rule>
        </filter>
  • <filter id="notHasNote">
          <rule grant="false">
            <schema>note</schema>
          </rule>
        </filter>
  • <filter id="denyForFile">
          <rule grant="false">
            <type>File</type>
          </rule>
        </filter>
  • <filter id="hasDublincore">
          <rule grant="true">
            <schema>dublincore</schema>
          </rule>
        </filter>
  • <filter id="canToggleLayoutToEditMode">
          <documentation>
            <p>
              Filter used by the "toggleableLayoutWithForms" widget type
              to check
              wether the "edit" button should be displayed.
            </p>
            <p>
              This filter is a combination of default filters "edit" and
              "mutable_document" usually used to control rendering of the "edit" tab
              on document views.
            </p>
            @since 5.6
          </documentation>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
          <rule grant="false">
            <condition>
              document.isTrashed()
            </condition>
          </rule>
        </filter>

    @since 5.6

  • <filter id="isMainBlob">
          <rule grant="true">
            <condition>#{blobXPath == blobHolderGenerator.getBlobHolder(document).xpath}</condition>
          </rule>
        </filter>
  • <filter id="isExportableToPDF">
          <rule grant="true">
            <condition>#{conversionActions.isExportableToPDF(blob)}</condition>
          </rule>
        </filter>
  • <filter id="canFollow">
          <rule grant="true">
            <condition>#{subscriptionAction.canFollow()}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="restoreVersionDisplay">
      <rule grant="true">
        <condition>#{deleteActions.restoreActionDisplay()}
        </condition>
      </rule>
    </filter>

    <filter id="devModeEnabledForAdmin">
      <rule grant="true">
        <condition>#{seamReload.getCanTriggerFlush()}</condition>
      </rule>
    </filter>

    <filter id="seamHotReloadIsEnabled">
      <rule grant="true">
        <condition>#{seamHotReloadIsEnabled}</condition>
      </rule>
    </filter>

    <filter id="layoutDevModeEnabled">
      <rule grant="true">
        <condition>#{nxDevModeSet and nuxeoLayoutManagerBean.devModeSet}</condition>
      </rule>
    </filter>

    <filter id="layoutDevModeDisabled">
      <rule grant="true">
        <condition>#{nxDevModeSet and not nuxeoLayoutManagerBean.devModeSet}</condition>
      </rule>
    </filter>

    <filter id="isNotVersion">
      <rule grant="true">
        <condition>!document.isVersion()</condition>
      </rule>
    </filter>

    <filter id="hasSubscriptions">
      <rule grant="true">
        <condition>#{subscriptionAction.getSelectedNotifications().size() &gt; 0}</condition>
      </rule>
    </filter>

    <filter id="hasNoSubscriptions">
      <rule grant="true">
        <condition>#{subscriptionAction.getSelectedNotifications().size() == 0}</condition>
      </rule>
    </filter>

    <filter id="canSubscribe">
      <rule grant="false">
        <type>Domain</type>
        <type>WorkspaceRoot</type>
      </rule>
    </filter>

    <filter id="documentHasBlobs">
      <rule grant="true">
        <condition>
          #{popupHelper.isDocumentHasBlobs(document)}
        </condition>
      </rule>
    </filter>

    <filter id="hasNote">
      <rule grant="true">
        <schema>note</schema>
      </rule>
    </filter>

    <filter id="notHasNote">
      <rule grant="false">
        <schema>note</schema>
      </rule>
    </filter>

    <filter id="denyForFile">
      <rule grant="false">
        <type>File</type>
      </rule>
    </filter>

    <filter id="hasDublincore">
      <rule grant="true">
        <schema>dublincore</schema>
      </rule>
    </filter>

    <filter id="canToggleLayoutToEditMode">
      <documentation>
        <p>
          Filter used by the "toggleableLayoutWithForms" widget type
          to check
          wether the "edit" button should be displayed.
        </p>
        <p>
          This filter is a combination of default filters "edit" and
          "mutable_document" usually used to control rendering of the "edit" tab
          on document views.
        </p>
        @since 5.6
      </documentation>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
      <rule grant="false">
        <condition>
          document.isTrashed()
        </condition>
      </rule>
    </filter>

    <filter id="isMainBlob">
      <rule grant="true">
        <condition>#{blobXPath == blobHolderGenerator.getBlobHolder(document).xpath}</condition>
      </rule>
    </filter>

    <filter id="isExportableToPDF">
      <rule grant="true">
        <condition>#{conversionActions.isExportableToPDF(blob)}</condition>
      </rule>
    </filter>

    <!--
    Not used since 10.2, kept it for backward compatibility
    -->
    <filter id="canFollow">
      <rule grant="true">
        <condition>#{subscriptionAction.canFollow()}</condition>
      </rule>
    </filter>

  </extension>